package com.vibration.baseinfo.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.vibration.baseinfo.mapper.CzGroundWaterDataMapper;
import com.vibration.baseinfo.domain.CzGroundWaterData;
import com.vibration.baseinfo.service.ICzGroundWaterDataService;

/**
 * 地下水脉数据Service业务层处理
 * 
 * @author Mr_Wu
 * @date 2023-03-20
 */
@Service
public class CzGroundWaterDataServiceImpl implements ICzGroundWaterDataService 
{
    @Autowired
    private CzGroundWaterDataMapper czGroundWaterDataMapper;

    /**
     * 查询地下水脉数据
     * 
     * @param id 地下水脉数据主键
     * @return 地下水脉数据
     */
    @Override
    public CzGroundWaterData selectCzGroundWaterDataById(Long id)
    {
        return czGroundWaterDataMapper.selectCzGroundWaterDataById(id);
    }

    /**
     * 查询地下水脉数据列表
     * 
     * @param czGroundWaterData 地下水脉数据
     * @return 地下水脉数据
     */
    @Override
    public List<CzGroundWaterData> selectCzGroundWaterDataList(CzGroundWaterData czGroundWaterData)
    {
        return czGroundWaterDataMapper.selectCzGroundWaterDataList(czGroundWaterData);
    }

    /**
     * 新增地下水脉数据
     * 
     * @param czGroundWaterData 地下水脉数据
     * @return 结果
     */
    @Override
    public int insertCzGroundWaterData(CzGroundWaterData czGroundWaterData)
    {
        return czGroundWaterDataMapper.insertCzGroundWaterData(czGroundWaterData);
    }

    /**
     * 修改地下水脉数据
     * 
     * @param czGroundWaterData 地下水脉数据
     * @return 结果
     */
    @Override
    public int updateCzGroundWaterData(CzGroundWaterData czGroundWaterData)
    {
        return czGroundWaterDataMapper.updateCzGroundWaterData(czGroundWaterData);
    }

    /**
     * 批量删除地下水脉数据
     * 
     * @param ids 需要删除的地下水脉数据主键
     * @return 结果
     */
    @Override
    public int deleteCzGroundWaterDataByIds(Long[] ids)
    {
        return czGroundWaterDataMapper.deleteCzGroundWaterDataByIds(ids);
    }

    /**
     * 删除地下水脉数据信息
     * 
     * @param id 地下水脉数据主键
     * @return 结果
     */
    @Override
    public int deleteCzGroundWaterDataById(Long id)
    {
        return czGroundWaterDataMapper.deleteCzGroundWaterDataById(id);
    }

    /**
     * 根据recordId查询数据
     * @param recordId
     * @return
     */
    @Override
    public List<CzGroundWaterData> selectCzGroundWaterDataByRecordId(Long recordId) {
        return czGroundWaterDataMapper.selectCzGroundWaterDataByRecordId(recordId);
    }

    @Override
    public int batchInsertGroundWaterData(Long recordId, List<CzGroundWaterData> dataList) {
        return czGroundWaterDataMapper.batchInsertGroundWaterData(recordId, dataList);
    }

    @Override
    public int deleteCzGroundWaterDataByRecordIds(Long[] recordIds) {
        return czGroundWaterDataMapper.deleteCzGroundWaterDataByRecordIds(recordIds);
    }
}
